ostree/main: Wrap `Version` in `--version` in quotes
authorJonathan Lebon <jonathan@jlebon.com>
Wed, 24 Oct 2018 15:15:18 +0000 (11:15 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 24 Oct 2018 18:46:39 +0000 (18:46 +0000)
commit759b099861a3065f01384d4d1121a7726771e5fe
tree30427cf2dfb09e3b7bbf9d7fd25def4e22542891
parente4e3e087eedde657c9593dfa01b7e449d1a1042f
ostree/main: Wrap `Version` in `--version` in quotes

Wrap the `Version` key in the YAML-compatible output of
`ostree --version` with quotes so that it's parsed as a string. The
issues with the previous approach in a nutshell:

```
In [5]: yaml.load("asdf: 2018.10")
Out[5]: {'asdf': 2018.1}
```

It's treating the version number as a floating-point. Now, this is
technically a backwards incompatible change, but given that the previous
approach is inherently broken for our needs, I don't see a way around
breaking it now.

Closes: #1761
Approved by: cgwalters
src/ostree/ot-main.c